package org.example.memora.service.serviceImpl;

import org.example.memora.mapper.CategoryMapper;
import org.example.memora.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public boolean existsById(Integer categoryId){
        //TODO:逻辑有问题，应该查询
        if(categoryMapper.findById(categoryId)>=1){
            return true;
        };
        return false;
    }

}
